package ren.kane.phoenix.design.singleton;

/**
 * 懒汉式单例模式.
 *
 * @author renrk(1275) on 2018-10-07 7:57 PM
 **/
public class LazySingleton {

    private static class SingletonHolder {
        private static final LazySingleton INSTANCE = new LazySingleton();
    }

    private LazySingleton() {
    }

    public static LazySingleton getInstance() {
        return SingletonHolder.INSTANCE;
    }

}
